export web page data to excel using javascript [on hold]

Posted by Sreevani sri on Programmers See other posts from Programmers or by Sreevani sri
Published on 2014-08-18T13:44:51Z Indexed on 2014/08/18 16:43 UTC
Read the original article Hit count: 389

Filed under:

I have created web page using html.When i clicked on submit button it will export to excel. using javascript i wnt to export thadt data to excel.

my html code is

1. Please give your Name:<input type="text" name="Name" /><br />

2. Area where you reside:<input type="text" name="Res" /><br />
3. Specify your age group<br />
(a)15-25<input type="text" name="age"  />
(b)26-35<input type="text" name="age"  />
(c)36-45<input type="text" name="age"  />
(d) Above 46<input type="text" name="age"  /><br />
4. Specify your occupation<br />
(a) Student<input type="checkbox" name="occ" value="student" />
(b) Home maker<input type="checkbox" name="occ" value="home" /> 
(c) Employee<input type="checkbox" name="occ" value="emp" /> 
(d) Businesswoman <input type="checkbox" name="occ" value="buss" /> 
(e) Retired<input type="checkbox" name="occ" value="retired" /> 
(f) others (please specify)<input type="text" name="others"  /><br />
5. Specify the nature of your family<br />
(a) Joint family<input type="checkbox" name="family" value="jfamily" />
(b) Nuclear family<input type="checkbox" name="family" value="nfamily" /><br />
6. Please give the Number of female members in your family and their average age approximately<br />
Members Age  1   2   3   4   5<br />
8. Please give your highest level of education
(a)SSC or below<input type="checkbox" name="edu" value="ssc" />
(b) Intermediate<input type="checkbox" name="edu" value="int" />
(c) Diploma  <input type="checkbox" name="edu" value="dip" />
(d)UG degree <input type="checkbox" name="edu" value="deg" />
(e) PG <input type="checkbox" name="edu" value="pg" />
(g) Doctorial degree<input type="checkbox" name="edu" value="doc" /><br />
9. Specify your monthly income approximately in RS 
<input type="text" name="income"  /><br />
10. Specify your time spent in making a purchase decision at the outlet<br />
(a)0-15 min <input type="checkbox" name="dis" value="0-15 min" />
(b)16-30 min <input type="checkbox" name="dis" value="16-30 min" />
(c) 30-45 min<input type="checkbox" name="dis" value="30-45 min" />
(d) 46-60 min<input type="checkbox" name="dis" value="46-60 min" /><br />
  <input type="submit" onclick="exportToExcel()" value="Submit" />

  </div>
</form>

© Programmers or respective owner

Related posts about JavaScript